package com.ld.campus_help.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
//配置德鲁伊数据库连接池
@Configuration
public class DruidDataSourceConfig {
	@Bean
	@ConfigurationProperties("spring.datasource")
	public DruidDataSource druidDataSource(){
		DruidDataSource dataSource = new DruidDataSource();
		return dataSource;
	}
}
